Skip to content

docs(logger): add notice about mutating attributes in log formatter #3604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR adds a notice to both docs and API docs for Logger to let customers know that they should avoid directly mutating attributes when formatting a log entry, but rather they should make deep copies if mutation is necessary.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: #3588


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Feb 14, 2025
@dreamorosi dreamorosi requested a review from a team February 14, 2025 23:56
@dreamorosi dreamorosi requested a review from a team as a code owner February 14, 2025 23:56
@dreamorosi dreamorosi linked an issue Feb 14, 2025 that may be closed by this pull request
@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation logger This item relates to the Logger Utility labels Feb 14, 2025
@pull-request-size pull-request-size bot added the size/M PR between 30-99 LOC label Feb 14, 2025
@am29d am29d merged commit 6740fa6 into main Feb 15, 2025
49 checks passed
@am29d am29d deleted the 3588-docs-mutating-attributes-log-formatters branch February 15, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation logger This item relates to the Logger Utility size/M PR between 30-99 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: add notice about mutating attributes in custom log formatters
2 participants